       var data_tree = [
            {
               name: "时间",
               itemStyle: {
                   color: 'rgb(49, 129, 189)',
                },
                children: [
                  {
                       name: "1月份",
                       value: 1864,
                       itemStyle: {
                          // colorSaturation: 0.55,
                         //  colorAlpha: 1
                       },
                       
                       children: [{
                           name: "第一产业",
                           value: 1628,
                           itemStyle: {
                            //   color: '#f3aa02',
                               colorSaturation: 0.55,
                               colorAlpha: 1
                           },
                       },{
                           name: "第二产业",
                           value: 64,
                           itemStyle: {
                             //  color: '#f3aa02',
                               colorSaturation: 0.6,
                              // colorAlpha: 0.7
                           },
                       },{
                           name: "第三产业",
                           value: 172,
                           itemStyle: {
                             //  color: '#f3aa02',
                               colorSaturation: 0.65,
                             //  colorAlpha: 0.5
                           },
                           
                           },]
                       
                   }, 
                   {
                       name: "二月份",
                       value: 1025,
                       itemStyle: {
                         //  color: '#f3aa02',
                           colorSaturation: 0.55,
                       },
                        children: [{
                       name: "第一产业",
                       value: 714,
                       itemStyle: {
                        //   color: '#f3aa02',
                           colorSaturation: 0.45,
                           colorAlpha: 1
                        },
                       },{
                           name: "第二产业",
                           value: 215,
                           itemStyle: {
                             //  color: '#f3aa02',
                               colorSaturation: 0.4,
                              // colorAlpha: 0.7
                           },
                       },{
                           name: "第三产业",
                           value: 96,
                           itemStyle: {
                             //  color: '#f3aa02',
                               colorSaturation: 0.35,
                               colorAlpha: 1
                           },
                          }],
                    }]
               },
       ]
       // var modes = ['2012Budget', '2011Budget', 'Growth'];
      var tree_option = {
           // backgroundColor:'rgba(128, 128, 128, 0.1)',
           backgroundColor:'rgba(0,0,0,0)',
           // title: {
           //     left: 0,
           //     top: "4%",
           //     text: ['{c|}' + '{d|2014清华大学毕业生去向（共6218人）}'],
           //     // text:[],
           //     textStyle: {
           //         rich: {
           //             c: {
           //                 color: '#0000',
           //                 fontSize: 25,
           //                 fontWeight: 'bold',
           //                 width: 4,
           //                 height: 15,
           //                 backgroundColor: '#2196f3',

           //             },
           //             d: {
           //                // color: '#3e4956',
           //                 fontWeight: 'bold',
           //                 fontSize: 17,
           //                 padding: [0, 0, 0, 30],
           //             },
           //         }
           //     },
           // },
           tooltip: {},
           series: [{
               name: '全部',
               type: 'treemap',
               visibleMin: 300,
               roam:false,
               data: data_tree,
               leafDepth: 2, //呈现层级，若为1加载时仅展开一层，接下来的每一层通过单击进入，如上面的效果图所示，  
               //每一层级呈现的样式  
               label: {
                   
                   show: true ,
                   fontSize: 10,
                 //  color: '#000000',
                   formatter: function(params) {
                       var arr = [
                           params.name,
                           params.value + '万元'
                       ];
                       return arr.join('\n');
                   }
               },
               levels: [{
                        colorSaturation: [0.2, 0.8],
                       itemStyle: {
                           normal: {
                               borderColor: '#fff',
                               borderWidth: 1,
                               gapWidth: 1
                           }
                       }
                   },
                   {
                       colorSaturation: [0.3, 0.7],
                       colorMappingBy: 'id',
                       itemStyle: {
                           normal: {
                               // borderColorSaturation: 0.7,
                               gapWidth: 2,
                               borderWidth: 2
                           }
                       }
                   },
               ]
           }]
       };
